package com.miyake.server.user;

import javax.jdo.PersistenceManager;

import com.miyake.server.DsCommunity;
import com.miyake.server.PMF;

public class GetCommunity {
	protected void update(DsCommunity ret) {}
	public DsCommunity getByKey(String key) {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		DsCommunity ret = null;
		try {
			ret = pm.getObjectById(DsCommunity.class, key);
			update(ret);
		}
		catch(Exception e) {
			e.printStackTrace();
		}
		finally {
			pm.close();
		}
		return ret;
	}
}
